<?php
class SucculentFuncInfoVo extends SzAbstractMySqlVo
{

    private $userId;
    private $level;
    private $status;
    private $createTime;

    /**
     * Initialize SucculentFuncInfoVo.
     *
     * @param $userId
     * @param $level
     * @param $status
     * @param $createTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return SucculentFuncInfoVo
     */
    public function __construct($userId, $level, $status, $createTime, $isInsert = false) {
        $this->userId = $userId;
        $this->level = $level;
        $this->status = $status;
        $this->createTime = $createTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'SucculentFuncInfoVo';
        $this->ormName = 'SucculentFuncInfo';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'level' => $this->getLevel(),
            'status' => $this->getStatus(),
            'createTime' => $this->getCreateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'level' => $this->getLevel(),
            'status' => $this->getStatus(),
            'createTime' => $this->getCreateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getLevel(),
            $this->getStatus(),
            $this->getCreateTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getLevel()
    {
        return $this->level;
    }

    public function setLevel($val)
    {
        $this->saveColumnStatus(1, $this->level);
        $this->level = $val;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setStatus($val)
    {
        $this->saveColumnStatus(2, $this->status);
        $this->status = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(3, $this->createTime);
        $this->createTime = $val;
    }

}